<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/14 014
 * Time: 15:38
 */

namespace App\Command;


class Stereo
{
    public $name;

    public function __construct($name = null)
    {
        $this->name = $name;
    }

    public function on()
    {
        echo ($this->name . "Stereo is on<br />");
    }

    public function off()
    {
        echo ($this->name . "Stereo is off<br />");
    }

    public function setCD()
    {
        echo ($this->name . "Stereo is set for CD input<br />");
    }

    public function setVolume($volume)
    {
        echo ($this->name . "Stereo volume set to ". $volume ."<br />");
    }
}